package com.zrrd.learn.chapter09.Jihe.BookManagement;

import lombok.Data;

/**
 * 图书清单
 *
 * @author asus
 * @version 1.0
 * @date 2023/8/9 13:58
 */
@Data
public class BookList {


    private Book books ;


    public BookList(){
        books=new Book("《西游记》","吴承恩",12,5);

    }

    public void show(){
        System.out.println("现有下列图书："+"\n"+"书名："+ books.getBookName()+"\n"+
                "作者:"+books.getAuthor()+"\n"+"图书编号："+books.getISBN()+"\n"+"库存："+books.getInventory());

    }
    public static void main(String[] args) {
        BookList b1 = new BookList();
        b1.show();
    }

}
